<#include "/common/head.ftl">

<html>

<head>

<title>Waiting List</title>

<style>
	
table.nameTable {
	empty-cells:show;
	border-top: 1px solid black;
	border-right: 1px solid black;
}

table.nameTable tr {
	
}

table.nameTable tr td {
	border-left: 1px solid black;
	border-bottom: 1px solid black;
}

</style>

</head>

<body style="padding:0cm">

<div style="width:29.5cm;text-align:left;margin:0cm;padding:0px">

<h1 style="text-align:center;padding-top:0cm;margin:0cm">Waiting List</h1>

<br/>

<table class="nameTable" border="0" style="solid black;width:26cm;margin-left:0cm;padding:0cm" cellspacing="0" cellpadding=0">
	<tr style="text-align:center;font-weight:bold;background-color:#C0C0C0">
		<td style="width:30px">No.</td>
		<td style="width:180px">Student</td>
		<td style="width:100px">Phone</td>
		<td style="width:100px">Test Date</td>
		<td style="width:80px">Last Class</td>
		<td style="width:100px">Ended Date</td>
		<td style="width:100px">Registered Date</td>
		<td style="width:120px">Waiting Level</td>
		<td style="">Note</td>
	</tr>
	<#list waitings as waiting>
		<tr>
			<td style="text-align:center">${waiting_index + 1}</td>
			<td>${waiting.student.fullName}</td>
			<td style="text-align:center">${(waiting.student.phoneNumber)!}</td>
			<td style="text-align:center">${(waiting.student.lastPlacementTest.date)!}</td>
			<td style="text-align:center">${(waiting.student.lastOffering.name)!}</td>
			<td style="text-align:center">${(waiting.student.lastOffering.endDate)!}</td>
			<td style="text-align:center">${(waiting.registeredDate)!}</td>
			<td style="text-align:center">${(waiting.level.name)!}</td>
			<td>${waiting.comment}</td>
	</#list>
</table>
</body>
</html>